Right click "edit" on a batch file causes the batch file to be run.
In WinXP I used to be able to edit a batch file via the Windows Explorer by right-clicking and selecting "edit". When I do this in Windows 7 it runs the batch file rather than open notepad to edit it. How do I get it to run notepad and open the file for editing? WinXP included a means of modifying the behavior for context menu items for different file extensions. Is there a tool in Windows 7 that will do the same?
September 17th, 2012 3:45am

Then it is something wrong with your machine, default behavior when select edit is to open the file in Notepad. But if you chosen to open the the bat file, it should start.
Free Windows Admin Tool Kit Click here and download it now
September 17th, 2012 3:55am

Hi, We may import this registry settings for a test. Please backup the registry first before editing it. 1. Click Start, type in notepad.exe and press Enter. 2. Paste the following commands. Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\.bat] @="batfile" [HKEY_CLASSES_ROOT\.bat\PersistentHandler] @="{5e941d80-bf96-11cd-b579-08002b30bfeb}" 3. Click Save and Save to desktop as import.txt. 4. Rename import.txt to import.reg 5. Double click import.reg file. 6. Reboot the system.Kim Zhou TechNet Community Support
September 18th, 2012 4:19am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics